package com.hoperun.framework.util;

import java.io.Serializable;

/**
 * Copyright: Copyright (c) 2014 CNPCMALL <br/>
 * ClassName: Constant.java
 * 
 * @Description: 该类的功能描述
 * 
 * @version: v1.0.0
 * @author: fuyu
 * @date: 2014-7-25 上午10:00:14
 * 
 *        Modification History: Date Author Version Description
 *        ---------------------------------------------------------* 2014-7-25
 *        fuyu v1.0.0 修改原因
 */
public class Constant implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static final int ZERO = 0;

	public static final int ONE = 1;

	public static final int SECOND = 2;

	public static final int THIRD = 3;
	
	public static final int FOUR = 4;
	
	public static final int ERROR = -1;

	public static final int SUCCESS = 1;

	/** 未授权时的回掉地址 */
	public static final String REFERER = "referer";

	/** 未授权时的回掉地址 */
	public static final String REQUEST_FROM = "req_from";

	/** 授权缓存key */
	public static final String AUTHORIZATION_CACHE_NAME = "xhz-authorizationCacheName";

	/** 离线消息时间 */
	public final static Long OFFLINE_TIME = (24 * 1000 * 3600L);

	/** 是否是离线消息 */
	public final static boolean OFFLINE = true;

	/** 休眠时间 */
	public final static int SLEEP_TIME = 1000;
}
